# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=morxtraversal
pkgver=1.0
pkgrel=7
groups=('blackarch' 'blackarch-webapp' 'blackarch-scanner')
pkgdesc='Path Traversal checking tool.'
url='http://www.morxploit.com/tools/'
arch=('any')
license=('custom:unknown')
depends=('perl' 'perl-io-socket')
source=('http://web.archive.org/web/20160112201050/http://www.morxploit.com:80/morxtools/morxtraversal.pl')
#source=('http://www.morxploit.com/morxtools/morxtraversal.pl')
sha512sums=('8f1929f36eeca2f47dbc9d0cb2477f347b41000a0c157e5069730906da1c6d5330dd2c21f644e4dcdb73430c7ea5907f89c94d6d6383ebb2541c73f88250c4db')

pkgver() {
  grep -i "tool:" "$pkgname.pl" | cut -d ' ' -f 4 | sed 's/v//g'
}

package() {
  install -Dm 755 "$pkgname.pl" "$pkgdir/usr/bin/$pkgname"
}

